﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package net.wooga.pets.controllers.testgroup {
    import net.wooga.pets.views.components.*;
    import net.wooga.pets.views.popups.missions.*;
    import net.wooga.pets.views.components.computerdisplay.*;
    import net.wooga.pets.views.*;
    import net.wooga.pets.views.world.*;
    import net.wooga.pets.constants.*;
    import org.robotlegs.mvcs.*;
    import net.wooga.pets.models.world.*;
    import net.wooga.pets.controllers.world.*;
    import net.wooga.pets.controllers.*;
    import net.wooga.pets.views.tutorial.chapter.*;
    import net.wooga.pets.controllers.waitingQueue.*;

    public class PrepareWaitingQueueCommand extends Command {

        public var worldModel:WorldModel;

        override public function execute():void{
            mediatorMap.mapView(WaitingPetView, WaitingPetMediator);
            commandMap.unmapEvent(EventConstants.UPDATE_MORE_PETS_ARROW, UpdateMorePetsArrowCommand);
            commandMap.unmapEvent(EventConstants.DISPATCH_SEND_AMBULANCE_AWAY, DispatchSendAmbulanceAwayCommand);
            commandMap.mapEvent(EventConstants.DISPATCH_SEND_AMBULANCE_AWAY, DispatchSendAmbulanceAwayCommand_W);
            commandMap.mapEvent(EventConstants.LOAD_WAITING_PET, LoadWaitingPetCommand);
            commandMap.mapEvent(EventConstants.CREATE_WAITING_PET, CreateWaitingPetCommand);
            commandMap.mapEvent(EventConstants.CREATE_WAITING_QUEUE_ROOM, CreateWaitingQueueRoomCommand);
            commandMap.mapEvent(EventConstants.PICK_NEW_PATIENT, PickNewPatientCommand);
            commandMap.mapEvent(EventConstants.INIT_WAITING_PET, InitWaitingPetCommand);
            commandMap.mapEvent(EventConstants.REMOVE_FROM_QUEUE, RemoveFromWaitingQueueCommand);
            commandMap.mapEvent(EventConstants.ADD_NEW_PET_TO_QUEUE, AddNewWaitingPetToQueueCommand);
            commandMap.mapEvent(EventConstants.INIT_WAITING_QUEUE, InitWaitingQueueCommand);
            mediatorMap.unmapView(ComputerDisplay);
            mediatorMap.mapView(ComputerDisplay, ComputerMediator_W);
            mediatorMap.unmapView(MissionTasksPopupView);
            mediatorMap.mapView(MissionTasksPopupView, MissionTasksPopUpMediator_W);
            mediatorMap.unmapView(TutorialFirstRoomView);
            mediatorMap.mapView(TutorialFirstRoomView, TutorialFirstRoomMediator_W, TutorialOverlay);
            mediatorMap.unmapView(TutorialLevel1View);
            mediatorMap.mapView(TutorialLevel1View, TutorialLevel1Mediator_W, TutorialOverlay);
            mediatorMap.unmapView(TutorialFountainView);
            mediatorMap.mapView(TutorialFountainView, TutorialFountainMediator_W, TutorialOverlay);
            mediatorMap.unmapView(LetterPopupTypeB);
            mediatorMap.mapView(LetterPopupTypeB, LetterMediatorTypeB_W);
            commandMap.unmapEvent(EventConstants.LETTER_BUTTON_CLICKED, LetterButtonClickedCommand);
            commandMap.mapEvent(EventConstants.LETTER_BUTTON_CLICKED, LetterButtonClickedCommand_W);
        }

    }
}//package net.wooga.pets.controllers.testgroup 
